package demo.lambda;


import java.util.function.Consumer;
import java.util.function.Function;

public class DoubleColon<T> {
    private T name;

    public T testGet(OnlyReturnValue<T> action) {
        System.out.println(action.get());
        return action.get();
    }

    public void testSet(OnlyInputParameters<T> action, T a) {
        action.set(a);
    }

    public boolean testEq(Function action, String a) {
        System.out.println(action.apply(a));
        return a.equals(action.apply(a));
    }

    public T getName() {
        return name;
    }

    public void setName(T name) {
        this.name = name;
    }
}
